#!/bin/sh
# the next line restarts using wish \
exec wish "$0" "$@"

# dsn
# an airplug compatible program
# authors: Nicolas Brunet
#          Florian Constancien
#          Yann Daluzeau
#          Tony Deveaux
#          David Gross
#          Chenghao Wang
#          Bao Xiaoyu
# license type: free of charge license for academic and research purpose
# see license.txt

# 
# dns.tk 
# main program
#

set APP "DSN"
set app "dsn"

set APG_PATH [lindex [split [exec env | grep APG_PATH] "="] 1]
if { [ catch {
		set libapgfile [open $APG_PATH/LIBAPGTK/LIBAPGTK/libapg.tk r]
		close $libapgfile
	} ] 
	} {
	puts stderr "\n\033\[1;31m- $::app\(local\): libapg.tk non trouvee\n \
                     Verifier l'installation. APG_PATH=$APG_PATH\n \
                     Se placer dans le repertoire bin, faire source config.sh\n \
                     Se reporter a la documentation en ligne. Contacter l'equipe Airplug.\
                     \033\[0;00m\n"
	exit
} else {
	source $APG_PATH/LIBAPGTK/LIBAPGTK/libapg.tk
	APG_vrb_dispnotif "utilisation de la distribution airplug $APG_PATH"
}

set APP_msgapropos \
"DSN v0.10
Distributed social network for airplug
Bertrand Ducourthial AT utc.fr
Lab. Heudiasyc, UMR CNRS 6599
Universite de Technologie de Compiegne
See license.txt"
set APP_help \
"
Distributed social network for airplug
"
	
source $PATH/dsn-inc.tk
source $PATH/dsn-misc.tk
source $PATH/dsn-args.tk
source $PATH/dsn-net.tk
source $PATH/dsn-gui.tk
